 
<div ng-if="user.name.length <= 0">
    <div ng-include="'app/view/login/login.tpl.html'"></div>
</div>
<div class="am-g tpl-g" ng-if="user.name.length > 0">
   <!-- 头部 -->
   <header>
       <!-- logo -->
       <div class="am-fl tpl-header-logo">
           <a href="javascript:;"><img src="assets/img/logo.png" alt=""></a>
       </div>
       <!-- 右侧内容 -->
       <div class="tpl-header-fluid">
            <!-- 侧边切换 -->
           <div class="am-fl tpl-header-switch-button am-icon-list" ng-click="autoLeftNav()"> 
              <span></span>
           </div>
           <!-- 其它功能-->
           <div class="am-fr tpl-header-navbar">
               <ul>
                   <!-- 退出 -->
                   <li class="am-text-sm">
                       <a href="javascript:;" ng-click="logoutFun()">
                           <span class="am-icon-sign-out"></span> 退出
                       </a>
                   </li>
               </ul>
           </div>
       </div>
   </header>
 
   <!-- 侧边导航栏 -->
   <div class="left-sidebar">
       <!-- 菜单 -->
       <ul class="sidebar-nav" data-ng-repeat="tree in treeData">
           <li class="sidebar-nav-link" ng-click="toggleActiveMenu(tree)">
               <a ng-href="{{tree.href}}" ng-class="{'active':dashboardModel.isActiveMenu == tree.id }"> 
                   <i class="{{tree.icons}}"></i> {{tree.text}}
               </a>
           </li>
       </ul>
   </div>
    <!-- 内容区域 -->
    <div ui-view ="main" class="tpl-content-wrapper"></div>
</div>
